//
//  lxAppInfoEntity.m
//  luodansc
//
//  Created by 倫 星 on 2012/10/21.
//  Copyright (c) 2012年 方正株式会社. All rights reserved.
//

#import "lxAppInfoEntity.h"
#import "lxStringUtility.h"

@implementation lxAppInfoEntity
@synthesize name = _name;
@synthesize version = _version;

- (id)init {
	self = [super init];
	if (self != nil) {
        _name = nil;
        _version = nil;
    }
    return self;
}

- (BOOL)setEntity:(NSDictionary *)dictionary {
    BOOL result = [super setEntity:dictionary];
    if (NO == result) {
        return NO;
    }

    _name = [lxStringUtility nil2String:[dictionary objectForKey:@"name"]];
    _version = [lxStringUtility nil2String:[dictionary objectForKey:@"version"]];
    
    return YES;
}

@end
